package com.huidian.resource.client;

import com.huidian.resource.client.dto.MeterDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


/**
 * @author super on 2021-04-03 11:18:17
 * Copyright (c) reform-generator
 */
@FeignClient(name = "base-server")
public interface MeterFeign {

    @PostMapping("/meter/list")
    List<MeterDto> selectList(@RequestBody MeterDto meterDto);


    @GetMapping("/meter/selectbyid")
    MeterDto selectById(@RequestParam("meterId") Long meterId);

}
